package com.tl.libpay.network;

import com.tl.commonlibrary.network.NetConfig;
import com.tl.commonlibrary.network.bean.base.BaseBean;
import com.tl.commonlibrary.ui.beans.ABCPayBean;
import com.tl.commonlibrary.ui.beans.ABCPayResultBean;
import com.tl.commonlibrary.ui.beans.AliPayBean;
import com.tl.commonlibrary.ui.beans.AliPayResultBean;
import com.tl.commonlibrary.ui.beans.RechargeBean;
import com.tl.commonlibrary.ui.beans.WxPayOrderInfoBean;

import java.util.List;
import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2017/6/2 0002.
 * http接口定义
 */

public interface CommonInterfaceService {
    String DATA = "data";

    @FormUrlEncoded
    @POST("shop/wechat/prePay.do")
    Call<BaseBean<WxPayOrderInfoBean>> wechatPay(@Body RequestBody body);

    @FormUrlEncoded
    @POST("shop/wechat/orderInfo.do")
    Call<BaseBean> wechatOrderInfo(@Field(NetConfig.DATA) String data);

    @POST("exam/v1/alipay/prepay")
    Call<BaseBean<AliPayBean>> aliPay(@Body RequestBody body);

    @POST("exam/v1/alipay/pay-status")
    Call<BaseBean<AliPayResultBean>> aliPayResult(@Body RequestBody body);

    @GET("shop/abcpay/prePay.do")
    Call<BaseBean<ABCPayBean>> abcPay(@Query(NetConfig.DATA) String data);

    @FormUrlEncoded
    @POST("shop/abcpay/orderInfo.do")
    Call<BaseBean<ABCPayResultBean>> abcPayResult(@Field(NetConfig.DATA) String data);

}
